import os
from setup import version, svn

name = svn.split('/')[2].split('.')[0]

info = {'version':version,
        'svn':svn,
        'name':name,}

print info

print os.popen('svn export %(svn)s %(name)s-%(version)s' % info).read()

print os.popen('zip -r %(name)s-%(version)s.zip %(name)s-%(version)s' % info).read()

